﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYData.Core.Redis
{
    public static class RedisKeyConfig
    {
        /// <summary>
        /// 用户信息的redis缓存Key
        /// </summary>
        public const string ProjectUserInfoKey = "project:userinfo:{0}";
        /// <summary>
        /// 立项基本信息的redis缓存key
        /// </summary>
        public const string BaseInfoKey = "project:info:{0}";

        public const string BaseInfoCookies = "ProjectBaseInfo";

        /// <summary>
        /// 可变参数
        /// </summary>
        /// <param name="key"></param>
        /// <param name="val"></param>
        /// <returns></returns>
        public static string GetRedisKey(this string key, params string[] val)
        {
            return string.Format(key, val);
        }
    }
}
